#include <QCoreApplication>
#include<iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int d;
       cout<<"Введите день года: ";
       cin>>d;
       d = d % 7;
       d = d + 3;
       switch(d)
       {
          case 0 :
             {
               cout<<"\nВоскресенье";
                   break;
             }
          case 1 :
             {
               cout<<"\nponedelnik";
                   break;
             }
          case 2 :
             {
               cout<<"\nvtornik";
                   break;
             }
          case 3 :
             {
               cout<<"\nsreda";
                   break;
             }
          case 4 :
             {
               cout<<"\nchetverg";
                   break;
             }
          case 5 :
             {
               cout<<"\npyatnitza";
                   break;
             }
          case 6 :
             {
                cout<<"\nsubbota";
                   break;
             }
       }

       return 0;

    return a.exec();
}
